package com.gitee.mrj.aiboot.annotation.config.sf.ui.widget;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@Documented
public @interface SFRadioWidget {
    // SFDLSSize size() default SFDLSSize.DEFAULT;

    /**
     * radio 的样式，默认：`default`
     */
    StyleType styleType() default StyleType.DEFAULT;

    /**
     * RadioButton 的风格样式，目前有描边和填色两种风格，默认：`outline`
     */
    ButtonStyle buttonStyle() default ButtonStyle.OUTLINE;

    public enum ButtonStyle {
        OUTLINE("outline"),
        SOLID("solid");

        private String type;

        ButtonStyle(String type) {
            this.type = type;
        }

        public String value() {
            return this.type;
        }
    }


    public enum StyleType {
        DEFAULT("default"),
        BUTTON("button");

        private String type;

        StyleType(String type) {
            this.type = type;
        }

        public String value() {
            return this.type;
        }
    }
}
